import 'package:flutter/material.dart';


class HomeBottomAppBar extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    // TODO: implement createState
    return _HomeBottomAppBarState();
  }

}

class _HomeBottomAppBarState extends State<HomeBottomAppBar> {

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return BottomAppBar(
      shape: CircularNotchedRectangle(),
      color: Colors.amber,
      child: Row(
        mainAxisSize: MainAxisSize.max,
        mainAxisAlignment: MainAxisAlignment.spaceAround,
        children: <Widget>[
          InkWell(
            onTap: () {
              Navigator.pushNamed(context, '/');
            // Navigator.of(context).push(new MaterialPageRoute(builder: (ctx) => new MovieList(movieType: movieType)));
            },
            child: Container(
              height: 45,
              width: 120,
              child: Column(
                children: <Widget>[
                  Icon(Icons.wrap_text),
                  Text('文章',style: TextStyle(fontSize: 10),)
                ],
              ),

            )
          ),
          InkWell(
            onTap: () {
              Navigator.pushNamed(context, '/categorizes');
//               Navigator.of(context).push(new MaterialPageRoute(builder: (ctx) => new MovieList(movieType: movieType)));
            },
            child: Container(
              height: 45,
              width: 120,
              child: Column(
                children: <Widget>[
                  Icon(Icons.list),
                  Text('分区',style: TextStyle(fontSize: 10),)
                ],
              ),
            )
          ),
        ],
      ),
    );
  }
}